Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update protectionPreRequisites For Use w/o CHATTR #1716

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

getwildr
Copy link
Collaborator

Description

Update protectionPreRequisites For Use w/o CHATTR command available
Adds a return 0 if we reach eventually the end of the func.

Where should the reviewer start?

cntools.sh -o w/o chattr and ENABLE_CHATTR false

Motivation and context

cntools.sh -o w/o chattr and ENABLE_CHATTR false does not work
protectionPreRequisites returns non ZERO code if

  • ENABLE_CHATTR false
  • chattr not available Because [ false == true ] (L139) will return a non zero rc.

Which issue it fixes?

n/a

How has this been tested?

[cntools.sh -o w/o chattr and ENABLE_CHATTR false] is launching OK up to the main menu.

protectionPreRequisites returns non ZERO code if 
- ENABLE_CHATTR false
 - chattr not available 
Because [ false == true ] (L139) will return a non zero rc.
Adds a return 0 if we reach eventually the end of the func.
@rdlrt rdlrt merged commit baf8cc3 into alpha Nov 30, 2023
1 check passed
@rdlrt rdlrt deleted the getwildr-update-protectionPreRequisites-wochattr branch November 30, 2023 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants